//
//  VCDateInput.h
//  Astro
//
//  Created by Trinh Huy Cuong on 12/1/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#define DatePickerModeDate UIDatePickerModeDate
#define DatePickerModeTime UIDatePickerModeTime
#define DatePickerModeDateTime UIDatePickerModeDateAndTime

@protocol VCDateInputDelegate
@required
- (void) didRecieveDateFromVCDateInput:(NSString*)outputDate andDateString:(NSString*)_dateStr;
- (void) didCancelVCDateInput;
@end


@interface VCDateInput : UIViewController {
	IBOutlet UIDatePicker *datePicker;
	id <VCDateInputDelegate> delegate;
	NSInteger datePickerMode;
	NSDateFormatter *dft;
}

@property (nonatomic, assign) id <VCDateInputDelegate> delegate;
@property (nonatomic, readwrite) NSInteger datePickerMode;

- (IBAction) cancelVCDateInput;
- (IBAction) inputDateFromVCDateInput;

@end
